package com.pattern.proxy_pattern.stati;

/**
 * Created by chen on 2018/4/2.
 * <p>
 * Email 122741482@qq.com
 * <p>
 * Describe:
 */
public class UserServiceProxy implements FetchDb {

    private UserService userService;

    public UserServiceProxy(UserService userService) {
        this.userService = userService;
    }


    @Override
    public void query() {
        System.out.println("开启事物............");
        userService.query();
        System.out.println("关闭事物.....");
    }
}
